package com.itheima.mp.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.mp.domain.po.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.core.Constants;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    void updateBalanceByStatus(@Param("ew") LambdaQueryWrapper<User> lambdaQueryWrapper, @Param("balance") Integer balance);

    void deductBalance(@Param("ew") LambdaQueryWrapper<User> lambdaQueryWrapper, @Param("balance") Integer money);
}
